package md.frolov.bible.editors;

import org.eclipse.jface.viewers.ISelection;

public class BibleTextSelection implements ISelection{
	private final String text;
	
	public BibleTextSelection(String text){
		this.text = text;
	}
	
	public int getLength() {
		return text.length();
	}

	public String getText() {
		return text;
	}

	@Override
	public boolean isEmpty() {
		if(text == null) return true;
		return text.isEmpty();
	}

}
